 package com.client.service;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.shared.context.User;
import com.shared.model.Assure;

@RemoteServiceRelativePath("usermanagement")
public interface UserManagementService extends RemoteService{
	
		
	/**	
	* @gwt.typeArgs <com.shared.context.User>
	*/
	List getList() throws IllegalArgumentException;
	User save(User user,Assure assure) throws IllegalArgumentException;
	User saveForAdmin(User user) throws IllegalArgumentException;	
	User update(User user) throws IllegalArgumentException;
	User delete(User user) throws IllegalArgumentException;
	
	String changePassword(String oldP,String newP) throws IllegalArgumentException;
	
	User getUserCourant();
	Assure getAssureCourant();
	
	
	
}
